//package com.xyz.comsumer.controller;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//import org.springframework.web.client.RestTemplate;
//
//@RestController
//public class RibbonHelloController {
//
//    @Autowired
//    private RestTemplate restTemplate;
//    private  String serviceName = "service-provider";
//
//    @RequestMapping("/ribbon/hello")
//    public String hello() {
//        String callServiceResult = restTemplate.getForObject("http://"+serviceName+"/hello", String.class);
//        return callServiceResult;
//    }
//}
